package edu.scau.mis.pos.mapper;

import edu.scau.mis.pos.domain.ProductDescription;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper {

    public ProductDescription getProductBySn(String productSn);

    public List<ProductDescription> listAllProduct();

    ProductDescription selectProductById(Long productId);

    public List<ProductDescription> selectProductList(ProductDescription productDescription);

    public int insertProduct(ProductDescription productDescription);

    public int updateProduct(ProductDescription productDescription);

//    public int deleteProductById(Long productId);

    public int deleteProductsByIds(Long[] productId);
}

